//
//  FatCollectionViewCell.m
//  SheShiDu
//
//  Created by 单剑秋 on 16/6/16.
//  Copyright © 2016年 单剑秋. All rights reserved.
//

#import "FatCollectionViewCell.h"

@implementation FatCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.mainImageView = [[UIImageView alloc]init];
        _mainImageView.layer.masksToBounds = YES;
        _mainImageView.layer.cornerRadius = 5;
        [self.contentView addSubview:_mainImageView];
    }
    return self;
}

- (void)applyLayoutAttributes:(UICollectionViewLayoutAttributes *)layoutAttributes
{
    [super applyLayoutAttributes:layoutAttributes];
    _mainImageView.frame = layoutAttributes.bounds;
}

@end
